import request from "./http";



export function getBannerList() {
    return request({
        url: "/post/slide/ANDROID/4.0",
        method: "get"
    })
}

export function getForumCategory(params={}) {
    params._key = "79C01CEFACD51FFB4A622C86863C3E9D7E4BFE77FBFAD2C9B4B8F17A3ED35CFFF6AE76F07CAE7686706DD0D11037083834712141F2272A2E"
    return request({
        url: "/category/forum/list/ANDROID/2.0",
        method: "get"
    })
}

// http://floor.huluxia.com/category/forum/list/all/ANDROID/2.0?fum_id=4
// fum_id
export function getForumCategoryList(params) {
    params._key = "79C01CEFACD51FFB4A622C86863C3E9D7E4BFE77FBFAD2C9B4B8F17A3ED35CFFF6AE76F07CAE7686706DD0D11037083834712141F2272A2E"
    return request({
        url: "/category/forum/list/all/ANDROID/2.0",
        method: "get",
        params
    })
}

// 取消关注 要登陆
// http://floor.huluxia.com/category/unsubscibe/ANDROID/2.0?cat_ids=103
// cat_ids
// _key

export function setCategoryUnsubscibe(params) {
    params._key = "79C01CEFACD51FFB4A622C86863C3E9D7E4BFE77FBFAD2C9B4B8F17A3ED35CFFF6AE76F07CAE7686706DD0D11037083834712141F2272A2E"
    return request({
        url: "/category/unsubscibe/ANDROID/2.0",
        method: "get",
        params,
    })
}

// 关注 要登陆
// http://floor.huluxia.com/category/subscibe/ANDROID/2.0?cat_ids=103
// cat_ids
// _key

export function setCategorySubscibe(params) {
    params._key = "79C01CEFACD51FFB4A622C86863C3E9D7E4BFE77FBFAD2C9B4B8F17A3ED35CFFF6AE76F07CAE7686706DD0D11037083834712141F2272A2E"
    return request({
        url: "/category/subscibe/ANDROID/2.0",
        method: "get",
        params,
    })
}

